<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        function User(name, age) {
            this.name = name;
            this.age = age;
            this.sing = function () {
                
            }
        }
        // 静态属性
        User.page = 2
        // 静态方法
        User.run = function() {
            // 指向User构造函数
            console.log(this)
        }
    </script>
</body>
</html>